import {IResponse} from "@/common/common";
import {IEventType} from "@/common/model/EventType";
import request from "@/common/request";

interface IApiQueryAppEventType {
  application: string;
}

export type EventTypeParam = Partial<IApiQueryAppEventType>;

export async function apiQueryAppEventTypesByRadar(params: EventTypeParam): Promise<IResponse<IEventType[]>> {
  return request({url: `/v1/app/eventType`, params});
}

